Skip to content

Arm backend: Add initial module tests for Stable Diffusion 3.5 Medium #12242

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

YufengShi-dudu
Copy link
Collaborator

@YufengShi-dudu YufengShi-dudu commented Jul 7, 2025

  • Add module tests for two text encoders: CLIP and T5
  • Add module tests for VAE autoencoder
  • Add module tests for SD3Transformer2DModel
  • Add flag to exmaples/arm/setup.sh for installing Stable Diffusion dependencies
  • Handle int64 inputs to aten.slice_copy.Tensor using pass InsertCastForOpsWithInt64InputPass

Change-Id: I4389e87749cfb4e40f837cc6bfa8a59a73fb3a3a

cc @digantdesai @freddan80 @per @zingo @oscarandersson8218

- Add module tests for two text encoders: CLIP and T5
- Add module tests for VAE autoencoder
- Add module tests for SD3Transformer2DModel
- Add flag to exmaples/arm/setup.sh for installing Stable Diffusion
  dependencies
- Handle int64 inputs to aten.slice_copy.Tensor using pass
  InsertCastForOpsWithInt64InputPass

Change-Id: I4389e87749cfb4e40f837cc6bfa8a59a73fb3a3a
Signed-off-by: Yufeng Shi <yufeng.shi@arm.com>
@YufengShi-dudu YufengShi-dudu requested a review from freddan80 July 7, 2025 13:18
@YufengShi-dudu YufengShi-dudu added partner: arm For backend delegation, kernels, demo, etc. from the 3rd-party partner, Arm ciflow/trunk release notes: arm Changes to the ARM backend delegate labels Jul 7, 2025
Copy link

pytorch-bot bot commented Jul 7, 2025

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/12242

Note: Links to docs will display an error until the docs builds have been completed.

✅ You can merge normally! (3 Unrelated Failures)

As of commit 53447d4 with merge base d952326 (image):

BROKEN TRUNK - The following jobs failed but were present on the merge base:

👉 Rebase onto the `viable/strict` branch to avoid these failures

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jul 7, 2025
@YufengShi-dudu
Copy link
Collaborator Author

Hi @digantdesai,

We added some test configs to stable_diffusion_module_test_configs.py. They're mostly copy-pasted from the diffusers library to initialize different modules for testing.

We've included license notice and copyright attribution, and also links to the original source files for reference,

Please let us know if you have any concerns.

@freddan80
Copy link
Collaborator

Hi @digantdesai,

We added some test configs to stable_diffusion_module_test_configs.py. They're mostly copy-pasted from the diffusers library to initialize different modules for testing.

We've included license notice and copyright attribution, and also links to the original source files for reference,

Please let us know if you have any concerns.

Thx for highlighting this @YufengShi-dudu. With the proper attributions in place and a clear separation (separate file), it should be fine. But pls @digantdesai or @mergennachin - pls confirm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ciflow/trunk CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. partner: arm For backend delegation, kernels, demo, etc. from the 3rd-party partner, Arm release notes: arm Changes to the ARM backend delegate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants